package com.dengyuanke.entity.enums;

/**
 * Created by dengyuanke on 2017/11/7.
 */
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum SexEnum implements IEnum {
    MALE(1, "男"),
    FEMALE(0, "女");

    private int value;
    private String desc;

    SexEnum(final int value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Serializable getValue() {
        return this.value;
    }

    @JsonValue
    public String getDesc(){
        return this.desc;
    }
}